package springannotaion.compment22;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author sss
 * @date 2020-02-12 12:01
 **/
//@Component
public class InitializingBean1 implements InitializingBean , DisposableBean {

	public InitializingBean1() {
	}

	@Override
	public void destroy() throws Exception {
		System.out.println("InitializingBean1---------destroy");
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("InitializingBean1---------init");
	}
}
